/**
 * 英文颜色名称到颜色信息的映射表
 * 每个颜色信息包含：十六进制值、中文名和RGB值
 */
export const COLOR_NAME_TO_INFO: Record<string, { hex: string; name: string; rgb: string }> = {
    // 17种标准颜色 (根据CSS规范)
    'aqua': { hex: '#00FFFF', name: '水绿色', rgb: '0,255,255' },
    'black': { hex: '#000000', name: '黑色', rgb: '0,0,0' },
    'blue': { hex: '#0000FF', name: '蓝色', rgb: '0,0,255' },
    'fuchsia': { hex: '#FF00FF', name: '紫红色', rgb: '255,0,255' },
    'gray': { hex: '#808080', name: '灰色', rgb: '128,128,128' },
    'green': { hex: '#008000', name: '绿色', rgb: '0,128,0' },
    'lime': { hex: '#00FF00', name: '石灰绿', rgb: '0,255,0' },
    'maroon': { hex: '#800000', name: '栗色', rgb: '128,0,0' },
    'navy': { hex: '#000080', name: '藏青色', rgb: '0,0,128' },
    'olive': { hex: '#808000', name: '橄榄色', rgb: '128,128,0' },
    'purple': { hex: '#800080', name: '紫色', rgb: '128,0,128' },
    'red': { hex: '#FF0000', name: '红色', rgb: '255,0,0' },
    'silver': { hex: '#C0C0C0', name: '银色', rgb: '192,192,192' },
    'teal': { hex: '#008080', name: '蓝绿色', rgb: '0,128,128' },
    'white': { hex: '#FFFFFF', name: '白色', rgb: '255,255,255' },
    'yellow': { hex: '#FFFF00', name: '黄色', rgb: '255,255,0' },

    // 同色不同名的标准颜色
    'cyan': { hex: '#00FFFF', name: '青色 (与aqua相同颜色)', rgb: '0,255,255' },
    'magenta': { hex: '#FF00FF', name: '品红色 (与fuchsia相同颜色)', rgb: '255,0,255' },
    'grey': { hex: '#808080', name: '灰色 (与gray相同颜色)', rgb: '128,128,128' },

    // 其他常见颜色
    'aliceblue': { hex: '#F0F8FF', name: '爱丽丝蓝', rgb: '240,248,255' },
    'antiquewhite': { hex: '#FAEBD7', name: '古董白', rgb: '250,235,215' },
    'aquamarine': { hex: '#7FFFD4', name: '碧绿色', rgb: '127,255,212' },
    'azure': { hex: '#F0FFFF', name: '天蓝色', rgb: '240,255,255' },
    'beige': { hex: '#F5F5DC', name: '米色', rgb: '245,245,220' },
    'bisque': { hex: '#FFE4C4', name: '陶坯色', rgb: '255,228,196' },
    'blanchedalmond': { hex: '#FFEBCD', name: '漂白杏仁色', rgb: '255,235,205' },
    'blueviolet': { hex: '#8A2BE2', name: '蓝紫色', rgb: '138,43,226' },
    'brown': { hex: '#A52A2A', name: '棕色', rgb: '165,42,42' },
    'burlywood': { hex: '#DEB887', name: '硬木色', rgb: '222,184,135' },
    'cadetblue': { hex: '#5F9EA0', name: '军校蓝', rgb: '95,158,160' },
    'chartreuse': { hex: '#7FFF00', name: '黄绿色', rgb: '127,255,0' },
    'chocolate': { hex: '#D2691E', name: '巧克力色', rgb: '210,105,30' },
    'coral': { hex: '#FF7F50', name: '珊瑚色', rgb: '255,127,80' },
    'cornflowerblue': { hex: '#6495ED', name: '矢车菊蓝', rgb: '100,149,237' },
    'cornsilk': { hex: '#FFF8DC', name: '玉米丝色', rgb: '255,248,220' },
    'crimson': { hex: '#DC143C', name: '深红色', rgb: '220,20,60' },
    'darkblue': { hex: '#00008B', name: '深蓝色', rgb: '0,0,139' },
    'darkcyan': { hex: '#008B8B', name: '深青色', rgb: '0,139,139' },
    'darkgoldenrod': { hex: '#B8860B', name: '深金黄色', rgb: '184,134,11' },
    'darkgray': { hex: '#A9A9A9', name: '深灰色', rgb: '169,169,169' },
    'darkgreen': { hex: '#006400', name: '深绿色', rgb: '0,100,0' },
    'darkgrey': { hex: '#A9A9A9', name: '深灰色', rgb: '169,169,169' },
    'darkkhaki': { hex: '#BDB76B', name: '深卡其色', rgb: '189,183,107' },
    'darkmagenta': { hex: '#8B008B', name: '深品红色', rgb: '139,0,139' },
    'darkolivegreen': { hex: '#556B2F', name: '深橄榄绿', rgb: '85,107,47' },
    'darkorange': { hex: '#FF8C00', name: '深橙色', rgb: '255,140,0' },
    'darkorchid': { hex: '#9932CC', name: '深兰花色', rgb: '153,50,204' },
    'darkred': { hex: '#8B0000', name: '深红色', rgb: '139,0,0' },
    'darksalmon': { hex: '#E9967A', name: '深鲑鱼色', rgb: '233,150,122' },
    'darkseagreen': { hex: '#8FBC8F', name: '深海绿色', rgb: '143,188,143' },
    'darkslateblue': { hex: '#483D8B', name: '深板岩蓝', rgb: '72,61,139' },
    'darkslategray': { hex: '#2F4F4F', name: '深板岩灰', rgb: '47,79,79' },
    'darkslategrey': { hex: '#2F4F4F', name: '深板岩灰', rgb: '47,79,79' },
    'darkturquoise': { hex: '#00CED1', name: '深绿松石色', rgb: '0,206,209' },
    'darkviolet': { hex: '#9400D3', name: '深紫色', rgb: '148,0,211' },
    'deeppink': { hex: '#FF1493', name: '深粉色', rgb: '255,20,147' },
    'deepskyblue': { hex: '#00BFFF', name: '深天蓝色', rgb: '0,191,255' },
    'dimgray': { hex: '#696969', name: '暗淡灰', rgb: '105,105,105' },
    'dimgrey': { hex: '#696969', name: '暗淡灰', rgb: '105,105,105' },
    'dodgerblue': { hex: '#1E90FF', name: '道奇蓝', rgb: '30,144,255' },
    'firebrick': { hex: '#B22222', name: '火砖色', rgb: '178,34,34' },
    'floralwhite': { hex: '#FFFAF0', name: '花白色', rgb: '255,250,240' },
    'forestgreen': { hex: '#228B22', name: '森林绿', rgb: '34,139,34' },
    'gainsboro': { hex: '#DCDCDC', name: '庚斯博罗灰', rgb: '220,220,220' },
    'ghostwhite': { hex: '#F8F8FF', name: '幽灵白', rgb: '248,248,255' },
    'gold': { hex: '#FFD700', name: '金色', rgb: '255,215,0' },
    'goldenrod': { hex: '#DAA520', name: '金rod色', rgb: '218,165,32' },
    'greenyellow': { hex: '#ADFF2F', name: '绿黄色', rgb: '173,255,47' },
    'honeydew': { hex: '#F0FFF0', name: '蜜瓜色', rgb: '240,255,240' },
    'hotpink': { hex: '#FF69B4', name: '亮粉色', rgb: '255,105,180' },
    'indianred': { hex: '#CD5C5C', name: '印度红', rgb: '205,92,92' },
    'indigo': { hex: '#4B0082', name: '靛蓝色', rgb: '75,0,130' },
    'ivory': { hex: '#FFFFF0', name: '象牙色', rgb: '255,255,240' },
    'khaki': { hex: '#F0E68C', name: '卡其色', rgb: '240,230,140' },
    'lavender': { hex: '#E6E6FA', name: '薰衣草色', rgb: '230,230,250' },
    'lavenderblush': { hex: '#FFF0F5', name: '薰衣草腮红', rgb: '255,240,245' },
    'lawngreen': { hex: '#7CFC00', name: '草坪绿', rgb: '124,252,0' },
    'lemonchiffon': { hex: '#FFFACD', name: '柠檬雪纺', rgb: '255,250,205' },
    'lightblue': { hex: '#ADD8E6', name: '浅蓝色', rgb: '173,216,230' },
    'lightcoral': { hex: '#F08080', name: '浅珊瑚色', rgb: '240,128,128' },
    'lightcyan': { hex: '#E0FFFF', name: '浅青色', rgb: '224,255,255' },
    'lightgoldenrodyellow': { hex: '#FAFAD2', name: '浅金黄色', rgb: '250,250,210' },
    'lightgray': { hex: '#D3D3D3', name: '浅灰色', rgb: '211,211,211' },
    'lightgreen': { hex: '#90EE90', name: '浅绿色', rgb: '144,238,144' },
    'lightgrey': { hex: '#D3D3D3', name: '浅灰色', rgb: '211,211,211' },
    'lightpink': { hex: '#FFB6C1', name: '浅粉色', rgb: '255,182,193' },
    'lightsalmon': { hex: '#FFA07A', name: '浅鲑鱼色', rgb: '255,160,122' },
    'lightseagreen': { hex: '#20B2AA', name: '浅海绿色', rgb: '32,178,170' },
    'lightskyblue': { hex: '#87CEFA', name: '浅天蓝色', rgb: '135,206,250' },
    'lightslategray': { hex: '#778899', name: '浅板岩灰', rgb: '119,136,153' },
    'lightslategrey': { hex: '#778899', name: '浅板岩灰', rgb: '119,136,153' },
    'lightsteelblue': { hex: '#B0C4DE', name: '轻钢蓝', rgb: '176,196,222' },
    'lightyellow': { hex: '#FFFFE0', name: '浅黄色', rgb: '255,255,224' },
    'limegreen': { hex: '#32CD32', name: '酸橙绿', rgb: '50,205,50' },
    'linen': { hex: '#FAF0E6', name: '亚麻色', rgb: '250,240,230' },
    'mediumaquamarine': { hex: '#66CDAA', name: '中碧绿色', rgb: '102,205,170' },
    'mediumblue': { hex: '#0000CD', name: '中蓝色', rgb: '0,0,205' },
    'mediumorchid': { hex: '#BA55D3', name: '中兰花色', rgb: '186,85,211' },
    'mediumpurple': { hex: '#9370DB', name: '中紫色', rgb: '147,112,219' },
    'mediumseagreen': { hex: '#3CB371', name: '中海绿色', rgb: '60,179,113' },
    'mediumslateblue': { hex: '#7B68EE', name: '中板岩蓝', rgb: '123,104,238' },
    'mediumspringgreen': { hex: '#00FA9A', name: '中春绿色', rgb: '0,250,154' },
    'mediumturquoise': { hex: '#48D1CC', name: '中绿松石色', rgb: '72,209,204' },
    'mediumvioletred': { hex: '#C71585', name: '中紫罗兰红色', rgb: '199,21,133' },
    'midnightblue': { hex: '#191970', name: '午夜蓝', rgb: '25,25,112' },
    'mintcream': { hex: '#F5FFFA', name: '薄荷奶油色', rgb: '245,255,250' },
    'mistyrose': { hex: '#FFE4E1', name: '迷雾玫瑰色', rgb: '255,228,225' },
    'moccasin': { hex: '#FFE4B5', name: '鹿皮鞋色', rgb: '255,228,181' },
    'navajowhite': { hex: '#FFDEAD', name: '纳瓦霍白色', rgb: '255,222,173' },
    'oldlace': { hex: '#FDF5E6', name: '老蕾丝色', rgb: '253,245,230' },
    'olivedrab': { hex: '#6B8E23', name: '橄榄土色', rgb: '107,142,35' },
    'orange': { hex: '#FFA500', name: '橙色', rgb: '255,165,0' },
    'orange-red': { hex: '#FF4500', name: '橙红色', rgb: '255,69,0' },
    'orchid': { hex: '#DA70D6', name: '兰花色', rgb: '218,112,214' },
    'palegoldenrod': { hex: '#EEE8AA', name: '苍金黄色', rgb: '238,232,170' },
    'palegreen': { hex: '#98FB98', name: '苍绿色', rgb: '152,251,152' },
    'paleturquoise': { hex: '#AFEEEE', name: '苍绿松石色', rgb: '175,238,238' },
    'palevioletred': { hex: '#DB7093', name: '苍紫罗兰红色', rgb: '219,112,147' },
    'papayawhip': { hex: '#FFEFD5', name: '木瓜奶昔色', rgb: '255,239,213' },
    'peachpuff': { hex: '#FFDAB9', name: '桃色', rgb: '255,218,185' },
    'peru': { hex: '#CD853F', name: '秘鲁色', rgb: '205,133,63' },
    'pink': { hex: '#FFC0CB', name: '粉色', rgb: '255,192,203' },
    'plum': { hex: '#DDA0DD', name: '李子色', rgb: '221,160,221' },
    'powderblue': { hex: '#B0E0E6', name: '粉蓝色', rgb: '176,224,230' },
    'rosybrown': { hex: '#BC8F8F', name: '玫瑰棕色', rgb: '188,143,143' },
    'royalblue': { hex: '#4169E1', name: '皇家蓝', rgb: '65,105,225' },
    'saddlebrown': { hex: '#8B4513', name: '马鞍棕色', rgb: '139,69,19' },
    'salmon': { hex: '#FA8072', name: '鲑鱼色', rgb: '250,128,114' },
    'sandybrown': { hex: '#F4A460', name: '沙棕色', rgb: '244,164,96' },
    'seagreen': { hex: '#2E8B57', name: '海绿色', rgb: '46,139,87' },
    'seashell': { hex: '#FFF5EE', name: '海贝壳色', rgb: '255,245,238' },
    'sienna': { hex: '#A0522D', name: '赭色', rgb: '160,82,45' },
    'skyblue': { hex: '#87CEEB', name: '天蓝色', rgb: '135,206,235' },
    'slateblue': { hex: '#6A5ACD', name: '板岩蓝', rgb: '106,90,205' },
    'slategray': { hex: '#708090', name: '板岩灰', rgb: '112,128,144' },
    'slategrey': { hex: '#708090', name: '板岩灰', rgb: '112,128,144' },
    'snow': { hex: '#FFFAFA', name: '雪白色', rgb: '255,250,250' },
    'springgreen': { hex: '#00FF7F', name: '春绿色', rgb: '0,255,127' },
    'steelblue': { hex: '#4682B4', name: '钢蓝色', rgb: '70,130,180' },
    'tan': { hex: '#D2B48C', name: '棕褐色', rgb: '210,180,140' },
    'thistle': { hex: '#D8BFD8', name: '蓟花色', rgb: '216,191,216' },
    'tomato': { hex: '#FF6347', name: '番茄色', rgb: '255,99,71' },
    'turquoise': { hex: '#40E0D0', name: '绿松石色', rgb: '64,224,208' },
    'violet': { hex: '#8A2BE2', name: '紫色', rgb: '138,43,226' },
    'wheat': { hex: '#F5DEB3', name: '小麦色', rgb: '245,222,179' },
    'whitesmoke': { hex: '#F5F5F5', name: '烟白色', rgb: '245,245,245' },
    'yellowgreen': { hex: '#9ACD32', name: '黄绿', rgb: '154,205,50' }
};